﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PromotionEdit.ascx.cs"
    Inherits="Micronet.OpenWeb.Com.ControlLib.PromotionEdit" %>
<style type="text/css">
    .style1
    {
        width: 206px;
    }
    .style2
    {
    }
    .style5
    {
        width: 369px;
    }
    .style7
    {
        width: 324px;
    }
    .style8
    {
        width: 95px;
    }
    .style9
    {
        width: 184px;
    }
    .style10
    {
        width: 345px;
    }
    .style13
    {
        width: 168px;
    }
    .style14
    {
        width: 757px;
    }
    .style17
    {
        width: 177px;
    }
    .style18
    {
        width: 461px;
    }
    .style19
    {
        width: 271px;
    }
</style>
<strong>Promotion: </strong>
<owc:OwAjaxPanel runat="server" ID="TimeAjaxPanel" Width="100%">
    <table>
        <tr>
            <td class="style13">
                Language Code:
            </td>
            <td class="style14">
                <owc:OwComboBox ID="LanguageCodeCBB" runat="server" SelectedValue='<%# Bind("LanguageCode") %>'
                    SkinID="owCombobox">
                    <Items>
                        <owct:RadComboBoxItem runat="server" Text="Tiếng Anh" Value="en-US" />
                        <owct:RadComboBoxItem runat="server" Text="Tiếng Việt" Value="vi-VN" />
                    </Items>
                </owc:OwComboBox>
            </td>
        </tr>
        <tr>
            <td class="style13">
                Date begin:
            </td>
            <td class="style14">
                <owc:OwDateTimePicker runat="server" ID="DateBeginDateTimePicker" SkinID="PromotionDateTimePicker"
                    OnSelectedDateChanged="DateBeginDateTimePicker_SelectedDateChanged" 
                    AutoPostBackControl="Both" AutoPostBack="True" Culture="vi-VN" 
                    MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue="" 
                    OwUsedForEdit="False">
                    <TimeView CellSpacing="-1" Culture="vi-VN">
                    </TimeView>
                    <TimePopupButton HoverImageUrl="" ImageUrl="" />
                    <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" 
                        ViewSelectorText="x">
                    </Calendar>
                    <DateInput AutoPostBack="True" DateFormat="dd/MM/yyyy" 
                        DisplayDateFormat="dd/MM/yyyy" LabelWidth="">
                    </DateInput>
                    <DatePopupButton HoverImageUrl="" ImageUrl="" />
                </owc:OwDateTimePicker>
            </td>
        </tr>
        <tr>
            <td class="style13">
                Date end:
            </td>
            <td class="style14">
                <owc:OwDateTimePicker ID="DateEndDateTimePicker" runat="server" AutoPostBackControl="Both"
                    OnSelectedDateChanged="DateEndDateTimePicker_SelectedDateChanged" 
                    SkinID="PromotionDateTimePicker" AutoPostBack="True" Culture="vi-VN" 
                    MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue="" 
                    OwUsedForEdit="False">
                    <TimeView CellSpacing="-1" Culture="vi-VN">
                    </TimeView>
                    <TimePopupButton HoverImageUrl="" ImageUrl="" />
                    <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" 
                        ViewSelectorText="x">
                    </Calendar>
                    <DateInput AutoPostBack="True" DateFormat="dd/MM/yyyy" 
                        DisplayDateFormat="dd/MM/yyyy" LabelWidth="">
                    </DateInput>
                    <DatePopupButton HoverImageUrl="" ImageUrl="" />
                </owc:OwDateTimePicker>
                <asp:CompareValidator ID="DateTimeCompareValidator" runat="server" ControlToCompare="DateBeginDateTimePicker"
                    ControlToValidate="DateEndDateTimePicker" ErrorMessage="DateTimeEnd is greater than equal DateTimeBegin"
                    Operator="GreaterThanEqual" ValidationGroup="1">*</asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td class="style13">
                Day Of Week:
            </td>
            <owc:OwAjaxPanel runat="server" ID="DayOfWeekAjaxPanel">
            <td class="style14">
                <owc:OwCheckBox ID="MonDayCheckBox" runat="server" SkinID="DayCheckBox" 
                    Text="Monday" />
                <owc:OwCheckBox ID="TuesDayCheckBox" runat="server" SkinID="DayCheckBox" 
                    Text="Tuesday" />
                <owc:OwCheckBox ID="WednesDayDayCheckBox" runat="server" SkinID="DayCheckBox" 
                    Text="Wednesday" />
                <owc:OwCheckBox ID="ThursDayCheckBox" runat="server" SkinID="DayCheckBox" 
                    Text="Thursday" />
                <owc:OwCheckBox ID="FriDayCheckBox" runat="server" SkinID="DayCheckBox" 
                    Text="Friday" />
                <owc:OwCheckBox ID="SaturDayCheckBox" runat="server" SkinID="DayCheckBox" 
                    Text="Saturday" />
                <owc:OwCheckBox ID="SunDayCheckBox" runat="server" SkinID="DayCheckBox" 
                    Text="Sunday" />
            </td>
            </owc:OwAjaxPanel>
        </tr>
        <tr>
            <td class="style13">
                Time begin:</td>
            <td class="style14">
                <owct:RadMaskedTextBox runat="server" Mask="<0..23>:<0..59>" ID="TimeBeginRadMaskedTextBox"/>
            </td>
        </tr>
        <tr>
            <td class="style13">
                Time End:</td>
            <td class="style14">
                <owct:RadMaskedTextBox runat="server" Mask="<0..23>:<0..59>" ID="TimeEndRadMaskedTextBox"/>
            </td>
        </tr>
    </table>
</owc:OwAjaxPanel>
<owc:OwAjaxPanel runat="server" ID="PresentAjaxPanel">
    <table style="width: 100%;">
        <tr>
            <td class="style8">
                <owc:OwCheckBox runat="server" ID="IsCardCheckBox" Text="IsCard" AutoPostBack="True" />
            </td>
            <td class="style1" colspan="2">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style2" colspan="3">
                <owc:OwCheckBox runat="server" ID="IsGiftCheckBox" Text="IsGift" 
                    AutoPostBack="True" oncheckedchanged="IsGiftCheckBox_CheckedChanged" />
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label runat="server" ID="ChooseGiftLabel">Choose Gift:</asp:Label>
            </td>
            <td class="style19">
                <owc:OwComboBox runat="server" ID="GiftPromotionCombobox" SkinID="PromotionCombobox"
                    DataSourceID="GiftPromotionOds" DataTextField="GiftName" DataValueField="PromotionGiftID"
                    AutoPostBack="True" />
                <asp:ObjectDataSource ID="GiftPromotionOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwPromotionGiftsEntity"
                    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
                    SelectMethod="OwGetAll" TypeName="Micronet.OpenWeb.Com.BLL.OwPromotionGiftsBLL"
                    UpdateMethod="OwUpdate">
                    <SelectParameters>
                        <asp:Parameter Name="sortClause" Type="String" />
                        <asp:Parameter Name="sortDirection" Type="String" />
                        <asp:Parameter Name="startRowIndex" Type="Int32" />
                        <asp:Parameter DefaultValue="9999" Name="maximumRows" Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
            </td>
            <td class="style2">
                <asp:HyperLink ID="AddGiftHyperLink" runat="server" NavigateUrl="~/Admin/Views/Sites/PromotionGiftEdit.aspx">Add Gift</asp:HyperLink>
            </td>
        </tr>
    </table>
</owc:OwAjaxPanel>
<owc:OwAjaxPanel runat="server" ID="ProductPriceAjaxPanel" Width="459px">
    &nbsp;<td class="style7">
        <table>
            <tr>
                <td class="style17">
                    Promotion Price:
                </td>
                <td class="style18">
                    <asp:RadioButtonList ID="ProductPriceRadioButtonList" runat="server" AutoPostBack="True"
                        OnSelectedIndexChanged="ProductPriceRadioButtonList_SelectedIndexChanged" RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True" Value="false">Tiền tệ</asp:ListItem>
                        <asp:ListItem Value="true">Phần trăm</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td style="margin-left: 80px" class="style17">
                    <br />
                </td>
                <td class="style18" style="margin-left: 80px">
                    <owc:OwComboBox ID="PromotionPriceTypeCombobox" runat="server" DataSourceID="CurrencyOpOds"
                        DataTextField="Name" DataValueField="LanguageCode" OnSelectedIndexChanged="PromotionPriceTypeCombobox_SelectedIndexChanged"
                        SkinID="PriceTypeCombobox" Width="100px">
                    </owc:OwComboBox>
                    <owc:OwNumericTextBox ID="PromotionPriceNumbericTextBox" runat="server" SkinID="PriceNumbericTextBox" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ErrorMessage="<%$ Ow: String.Format(Resources.OpenWeb.RequiredFieldValidatorErrMessage,Resources.OpenWeb.UnitType) %>"
                                    Text="*" ControlToValidate="PromotionPriceNumbericTextBox" 
                        ValidationGroup="1"></asp:RequiredFieldValidator>
                    <owc:OwComboBox runat="server" ID="HiddenCurrencyIDPromotionCombobox" 
                        DataSourceID="CurrencyOpOds" DataTextField="Name" DataValueField="CurrencyID" 
                        Visible="False"/>
                    <asp:ObjectDataSource ID="CurrencyOpOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwCurrenciesEntity"
                        DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
                        SelectMethod="OwGetAll" TypeName="Micronet.OpenWeb.Com.BLL.OwCurrenciesBLL" UpdateMethod="OwUpdate">
                        <SelectParameters>
                            <asp:Parameter Name="sortClause" Type="String" />
                            <asp:Parameter Name="sortDirection" Type="String" />
                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                            <asp:Parameter Name="maximumRows" Type="Int32" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                </td>
            </tr>
        </table>
</owc:OwAjaxPanel>
<table width="100%">
    <tr>
        <td class="style10">
            &nbsp;
        </td>
    </tr>
</table>
<p>
    <strong>Object To Promotion:</strong></p>
<owc:OwAjaxPanel runat="server" ID="ObjectToPromotionAjaxPanel">
    <asp:RadioButtonList ID="ProductPromotionRadioButtonList" runat="server" AutoPostBack="True"
        OnSelectedIndexChanged="ProductPromotionRadioButtonList_SelectedIndexChanged"
        RepeatDirection="Horizontal">
        <asp:ListItem Selected="True" Value="true">Apply For All Product</asp:ListItem>
        <asp:ListItem Value="false">Select Object To Promotion</asp:ListItem>
    </asp:RadioButtonList>
    <asp:Label ID="ProductPromotionLabel" runat="server" Text="Product:" Style="font-weight: 700"></asp:Label>
    <owc:OwTabStrip ID="ProductTabStrip" runat="server" CausesValidation="False" MultiPageID="ProductMultiPage"
        SelectedIndex="0" SkinID="PromotionTabStrip">
        <Tabs>
            <owct:RadTab ID="ProductRequireTab" runat="server" Text="Product Requires" 
                Selected="True">
            </owct:RadTab>
            <owct:RadTab ID="ProductInPromotionTab" runat="server" Text="Product Customize">
            </owct:RadTab>
            <owct:RadTab SkinID="OrderRequireTab" runat="server" Text="Order Requires">
            </owct:RadTab>
        </Tabs>
    </owc:OwTabStrip>
    <owc:OwMultiPage runat="server" ID="ProductMultiPage" SkinID="PromotionMultiPage"
        Width="757px" SelectedIndex="0">
        <%--Product Require--%>
        <owc:OwPageView runat="server" ID="RequireProductPageView">
            <owc:OwAjaxPanel ID="RequireAjaxPanel" runat="server">
                <table>
                    <tr>
                        <td>
                            <asp:Label runat="server" ID="PriceLabel" SkinID="PriceLabel">Price:</asp:Label>
                        </td>
                        <td class="style5">
                            <owc:OwComboBox ID="ProductPriceTypeCombobox" runat="server" AutoPostBack="True"
                                CausesValidation="False" SkinID="PriceTypeCombobox" OnSelectedIndexChanged="ProductPriceTypeCombobox_SelectedIndexChanged"
                                DataSourceID="CurrencyOpOds" DataTextField="Name" 
                                DataValueField="LanguageCode">
                            </owc:OwComboBox>
                            <owc:OwNumericTextBox ID="ProductPriceNumbericTextBox" runat="server" MinValue="0"
                                SkinID="PriceNumbericTextBox" Width="125px" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                ErrorMessage="<%$ Ow: String.Format(Resources.OpenWeb.RequiredFieldValidatorErrMessage,Resources.OpenWeb.UnitType) %>"
                                    Text="*" ControlToValidate="ProductPriceNumbericTextBox" 
                                ValidationGroup="1"></asp:RequiredFieldValidator>
                            <owc:OwComboBox ID="HiddenCurrencyIDProductCombobox" runat="server" 
                                DataSourceID="CurrencyOpOds" DataTextField="Name" DataValueField="CurrencyID" 
                                Visible="False">
                            </owc:OwComboBox>
                            <owc:OwComboBox ID="ProductCompareOperationComboBox" runat="server" 
                                SkinID="CompareOperationComboBox">
                                <Items>
                                    <owct:RadComboBoxItem runat="server" Text="&gt;" Value="&gt;" />
                                    <owct:RadComboBoxItem runat="server" Text="&lt;" Value="&lt;" />
                                    <owct:RadComboBoxItem runat="server" Text="=" Value="=" />
                                </Items>
                                <WebServiceSettings>
                                    <ODataSettings InitialContainerName="">
                                    </ODataSettings>
                                </WebServiceSettings>
                            </owc:OwComboBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Color:
                        </td>
                        <td class="style5">
                            <owc:OwComboBox ID="ColorProductCombobox" runat="server" DataSourceID="ColorProductOds"
                                DataTextField="Name" DataValueField="ColorID" SkinID="ColorProductCombobox">
                                <WebServiceSettings>
                                    <ODataSettings InitialContainerName="">
                                    </ODataSettings>
                                </WebServiceSettings>
                                <ItemTemplate>
                                    <div style='<%# String.Format("border: 1px solid gray;width: 10px;height: 10px;display: inline-block;background:{0};",Eval("ColorCode")) %>'>
                                        <asp:Image ID="ColorImage" runat="server" ImageUrl='<%# Eval("Pattern") %>' Style="width: 10px;
                                            height: 10px;" Visible='<%# !Eval("Pattern").OwIsNullOrEmpty()%>' />
                                    </div>
                                    <%# Eval("Name") %>
                                </ItemTemplate>
                            </owc:OwComboBox>
                            <asp:ObjectDataSource ID="ColorProductOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwColorsEntity"
                                DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
                                SelectMethod="OwGetAll" TypeName="Micronet.OpenWeb.Com.BLL.OwColorsBLL" UpdateMethod="OwUpdate">
                                <SelectParameters>
                                    <asp:Parameter DefaultValue="Name" Name="sortClause" Type="String" />
                                    <asp:Parameter DefaultValue="asc" Name="sortDirection" Type="String" />
                                    <asp:Parameter Name="startRowIndex" Type="Int32" />
                                    <asp:Parameter DefaultValue="9999" Name="maximumRows" Type="Int32" />
                                </SelectParameters>
                            </asp:ObjectDataSource>
                        </td>
                    </tr>
                </table>
            </owc:OwAjaxPanel>
        </owc:OwPageView>
        <%--Product Customize--%>
        <owc:OwPageView runat="server" ID="ProductCustomizePageView">
            <owc:OwGrid runat="server" ID="ProductCustomizeGrid" CellSpacing="0" SkinID="CustomizeGrid"
                DataSourceID="ProductCustomizeOds" GridLines="None" 
                OwEnableMessageDisplay="True" OwMessageDisplayType="InPlace">
                <MasterTableView AutoGenerateColumns="False" DataSourceID="ProductCustomizeOds">
                    <CommandItemSettings ExportToPdfText="Export to PDF" />
                    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                    </ExpandCollapseColumn>
                    <Columns>
                        <owct:GridBoundColumn DataField="ShopProductID" DataType="System.Int64" FilterControlAltText="Filter ShopProductID column"
                            HeaderText="ShopProductID" SortExpression="ShopProductID" UniqueName="ShopProductID">
                        </owct:GridBoundColumn>
                        <owct:GridBoundColumn DataField="Name" FilterControlAltText="Filter Name column"
                            HeaderText="Name" SortExpression="Name" UniqueName="Name">
                        </owct:GridBoundColumn>
                        <owct:GridBoundColumn DataField="Price" DataType="System.Double" FilterControlAltText="Filter Price column"
                            HeaderText="Price" SortExpression="Price" UniqueName="Price">
                        </owct:GridBoundColumn>
                        <owct:GridBoundColumn DataField="OldPrice" DataType="System.Double" FilterControlAltText="Filter OldPrice column"
                            HeaderText="OldPrice" SortExpression="OldPrice" UniqueName="OldPrice">
                        </owct:GridBoundColumn>
                        <owct:GridBoundColumn DataField="PromotionPrice" DataType="System.Double" FilterControlAltText="Filter PromotionPrice column"
                            HeaderText="PromotionPrice" SortExpression="PromotionPrice" UniqueName="PromotionPrice">
                        </owct:GridBoundColumn>
                        <owct:GridBoundColumn DataField="PromotionBegin" DataType="System.DateTime" FilterControlAltText="Filter PromotionBegin column"
                            HeaderText="PromotionBegin" SortExpression="PromotionBegin" UniqueName="PromotionBegin">
                        </owct:GridBoundColumn>
                        <owct:GridBoundColumn DataField="PromotionEnd" DataType="System.DateTime" FilterControlAltText="Filter PromotionEnd column"
                            HeaderText="PromotionEnd" SortExpression="PromotionEnd" UniqueName="PromotionEnd">
                        </owct:GridBoundColumn>
                        <owct:GridBoundColumn DataField="Description" FilterControlAltText="Filter Description column"
                            HeaderText="Description" SortExpression="Description" UniqueName="Description">
                        </owct:GridBoundColumn>
                    </Columns>
                    <EditFormSettings>
                        <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                        </EditColumn>
                    </EditFormSettings>
                </MasterTableView>
                <FilterMenu EnableImageSprites="False">
                </FilterMenu>
                <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                </HeaderContextMenu>
            </owc:OwGrid>
            <asp:ObjectDataSource ID="ProductCustomizeOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwShopProductsEntity"
                DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
                SelectMethod="OwGetAll" TypeName="Micronet.OpenWeb.Com.BLL.OwShopProductsBLL"
                UpdateMethod="OwUpdate">
                <SelectParameters>
                    <asp:Parameter Name="sortClause" Type="String" />
                    <asp:Parameter DefaultValue="" Name="sortDirection" Type="String" />
                    <asp:Parameter Name="startRowIndex" Type="Int32" />
                    <asp:Parameter DefaultValue="9999" Name="maximumRows" Type="Int32" />
                </SelectParameters>
            </asp:ObjectDataSource>
            <br />
        </owc:OwPageView>
        <%--Order Require--%>
        <owc:OwPageView runat="server" ID="OrderRequirePageView">
            <owc:OwAjaxPanel ID="OrderPromotionAjaxPanel" runat="server">
                <table width="100%">
                    <tr>
                        <td class="style9">
                            Total Amount Current Order:
                        </td>
                        <td>
                            <owc:OwComboBox ID="TotalAmountOrderTypeCombobox" runat="server" 
                                AutoPostBack="True" CausesValidation="False" DataSourceID="CurrencyOpOds" 
                                DataTextField="Name" DataValueField="LanguageCode" 
                                OnSelectedIndexChanged="TotalAmountOrderTypeCombobox_SelectedIndexChanged" 
                                SkinID="PriceTypeCombobox">
                            </owc:OwComboBox>
                            <owc:OwNumericTextBox ID="TotalAmountOrderNumbericTextBox" runat="server" 
                                MinValue="0" SkinID="PriceNumbericTextBox" Width="125px" />
                            <asp:RequiredFieldValidator ID="OrderRequiredFieldValidator" runat="server" 
                                ErrorMessage="<%$ Ow: String.Format(Resources.OpenWeb.RequiredFieldValidatorErrMessage,Resources.OpenWeb.UnitType) %>"
                                    Text="*" ControlToValidate="TotalAmountOrderNumbericTextBox" 
                                ValidationGroup="1"></asp:RequiredFieldValidator>
                            <owc:OwComboBox ID="HiddenCurrencyIDOrderCombobox" runat="server" 
                                DataSourceID="CurrencyOpOds" DataTextField="Name" DataValueField="CurrencyID" 
                                Visible="False">
                            </owc:OwComboBox>
                            <owc:OwComboBox ID="CompareOrderOperationComboBox" runat="server" 
                                SkinID="CompareOperationComboBox">
                                <Items>
                                    <owct:RadComboBoxItem runat="server" Text="&gt;" Value="&gt;" />
                                    <owct:RadComboBoxItem runat="server" Text="&lt;" Value="&lt;" />
                                    <owct:RadComboBoxItem runat="server" Text="=" Value="=" />
                                </Items>
                                <WebServiceSettings>
                                    <ODataSettings InitialContainerName="">
                                    </ODataSettings>
                                </WebServiceSettings>
                            </owc:OwComboBox>
                        </td>
                    </tr>
                </table>
            </owc:OwAjaxPanel>
        </owc:OwPageView>
    </owc:OwMultiPage>
    <br />
</owc:OwAjaxPanel>
<p>
    <strong>Object Received Promotion:</strong></p>
<p>
    <owc:OwAjaxPanel runat="server" ID="CustomerPromotionAjaxPanel">
        <asp:RadioButtonList ID="CustomerPromotionRadioButtonList" runat="server" OnSelectedIndexChanged="CustomerPromotionRadioButtonList_SelectedIndexChanged"
            RepeatDirection="Horizontal" AutoPostBack="True">
            <asp:ListItem Selected="True" Value="true">Apply For All Customers</asp:ListItem>
            <asp:ListItem Value="false">Select Object Receive Promotion</asp:ListItem>
        </asp:RadioButtonList>
        <owc:OwTabStrip runat="server" ID="CustomerTabStrip" SelectedIndex="0" SkinID="PromotionTabStrip"
            MultiPageID="CustomerMultiPage" CausesValidation="False">
            <Tabs>
                <owct:RadTab runat="server" ID="CustomerRequireTab" Text="Customer Requires" Selected="True">
                </owct:RadTab>
                <owct:RadTab runat="server" ID="CustomerCustomizeTab" Text="Customer Customize">
                </owct:RadTab>
            </Tabs>
        </owc:OwTabStrip>
        <owc:OwMultiPage runat="server" ID="CustomerMultiPage" Width="757px" SelectedIndex="0">
            <owc:OwPageView runat="server" ID="CustomerRequirePageView">
                <owc:OwAjaxPanel ID="CustomerRequireAjaxPanel" runat="server">
                    <table style="width: 100%;">
                        <tr>
                            <td class="style4">
                                Total Amount Order:
                            </td>
                            <td>
                                <owc:OwComboBox ID="TotalAmountCustomerTypeCombobox" runat="server" AutoPostBack="True"
                                    CausesValidation="False" SkinID="PriceTypeCombobox" 
                                    OnSelectedIndexChanged="TotalAmountCustomerTypeCombobox_SelectedIndexChanged" 
                                    DataSourceID="CurrencyOpOds" DataTextField="Name" DataValueField="LanguageCode">
                                </owc:OwComboBox>
                                <owc:OwNumericTextBox ID="TotalAmountCustomerNumbericTextBox" runat="server" MinValue="0"
                                    SkinID="PriceNumbericTextBox" Width="125px" />
                                <asp:RequiredFieldValidator ID="OrderRequiredFieldValidator0" runat="server" 
                                    ControlToValidate="TotalAmountCustomerNumbericTextBox" 
                                    ErrorMessage="<%$ Ow: String.Format(Resources.OpenWeb.RequiredFieldValidatorErrMessage,Resources.OpenWeb.UnitType) %>" 
                                    Text="*" ValidationGroup="1"></asp:RequiredFieldValidator>
                                <owc:OwComboBox ID="HiddenCurrencyIDCustomerCombobox" runat="server" 
                                    DataSourceID="CurrencyOpOds" DataTextField="Name" DataValueField="CurrencyID" 
                                    Visible="False">
                                </owc:OwComboBox>
                                <owc:OwComboBox ID="CompareCustomerOperationComboBox" runat="server" 
                                    SkinID="CompareOperationComboBox">
                                    <Items>
                                        <owct:RadComboBoxItem runat="server" Text="&gt;" Value="&gt;" />
                                        <owct:RadComboBoxItem runat="server" Text="&lt;" Value="&lt;" />
                                        <owct:RadComboBoxItem runat="server" Text="=" Value="=" />
                                    </Items>
                                    <WebServiceSettings>
                                        <ODataSettings InitialContainerName="">
                                        </ODataSettings>
                                    </WebServiceSettings>
                                </owc:OwComboBox>
                            </td>
                        </tr>
                    </table>
                </owc:OwAjaxPanel>
            </owc:OwPageView>
            <owc:OwPageView runat="server" ID="CustomerCustomizePageView">
                <owc:OwAjaxPanel runat="server" ID="CustomerCustomizeAjaxPanel">
                    <owc:OwGrid runat="server" ID="CustomerCustomizeGrid" SkinID="CustomizeGrid" CellSpacing="0"
                        DataSourceID="CustomerCustomizeOds" GridLines="None" OwEnableMessageDisplay="True"
                        OwMessageDisplayType="InPlace">
                        <MasterTableView AutoGenerateColumns="False" DataSourceID="CustomerCustomizeOds">
                            <CommandItemSettings ExportToPdfText="Export to PDF" />
                            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                            </ExpandCollapseColumn>
                            <Columns>
                                <owct:GridBoundColumn DataField="CustomerID" DataType="System.Int64" FilterControlAltText="Filter CustomerID column"
                                    HeaderText="CustomerID" SortExpression="CustomerID" UniqueName="CustomerID">
                                </owct:GridBoundColumn>
                                <owct:GridBoundColumn DataField="Name" FilterControlAltText="Filter Name column"
                                    HeaderText="Name" SortExpression="Name" UniqueName="Name">
                                </owct:GridBoundColumn>
                                <owct:GridBoundColumn DataField="Email" FilterControlAltText="Filter Email column"
                                    HeaderText="Email" SortExpression="Email" UniqueName="Email">
                                </owct:GridBoundColumn>
                                <owct:GridBoundColumn DataField="Tel" FilterControlAltText="Filter Tel column" HeaderText="Tel"
                                    SortExpression="Tel" UniqueName="Tel">
                                </owct:GridBoundColumn>
                                <owct:GridBoundColumn DataField="Fax" FilterControlAltText="Filter Fax column" HeaderText="Fax"
                                    SortExpression="Fax" UniqueName="Fax">
                                </owct:GridBoundColumn>
                                <owct:GridBoundColumn DataField="Mobile" FilterControlAltText="Filter Mobile column"
                                    HeaderText="Mobile" SortExpression="Mobile" UniqueName="Mobile">
                                </owct:GridBoundColumn>
                                <owct:GridBoundColumn DataField="Description" FilterControlAltText="Filter Description column"
                                    HeaderText="Description" SortExpression="Description" UniqueName="Description">
                                </owct:GridBoundColumn>
                                <owct:GridBoundColumn DataField="Address" FilterControlAltText="Filter Address column"
                                    HeaderText="Address" SortExpression="Address" UniqueName="Address">
                                </owct:GridBoundColumn>
                            </Columns>
                            <EditFormSettings>
                                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                </EditColumn>
                            </EditFormSettings>
                        </MasterTableView>
                        <FilterMenu EnableImageSprites="False">
                        </FilterMenu>
                        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                        </HeaderContextMenu>
                    </owc:OwGrid>
                    <asp:ObjectDataSource ID="CustomerCustomizeOds" runat="server" OldValuesParameterFormatString="original_{0}"
                        SelectMethod="OwGetAll" TypeName="Micronet.OpenWeb.Com.BLL.OwCustomersBLL" DataObjectTypeName="Micronet.OpenWeb.Entity.OwCustomersEntity"
                        DeleteMethod="OwDelete" InsertMethod="OwInsert" UpdateMethod="OwUpdate">
                        <SelectParameters>
                            <asp:Parameter DefaultValue="" Name="sortClause" Type="String" />
                            <asp:Parameter DefaultValue="" Name="sortDirection" Type="String" />
                            <asp:Parameter DefaultValue="" Name="startRowIndex" Type="Int32" />
                            <asp:Parameter DefaultValue="9999" Name="maximumRows" Type="Int32" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                </owc:OwAjaxPanel>
            </owc:OwPageView>
        </owc:OwMultiPage>
    </owc:OwAjaxPanel>
    <asp:Button runat="server" ID="CreatePromotionCampaignButton" SkinID="SubmitButton"
        Text="Create Promotion Campaign" OnClick="CreatePromotionCampaignButton_Click" />
<p>
    <asp:SqlDataSource runat="server"></asp:SqlDataSource>
   </p>
